package org.xtext.tp5.mydsl;

import java.util.ArrayList;
import java.util.List;

import org.eclipse.emf.ecore.EReference;
import org.eclipse.xtext.scoping.IScope;
import org.eclipse.xtext.scoping.Scopes;
import org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider;
import org.xtext.tp5.mydsl.myDsl.Entity;
import org.xtext.tp5.mydsl.myDsl.Trait;
import org.xtext.tp5.mydsl.myDsl.Feature;

public class MyDslScopeProvider extends AbstractDeclarativeScopeProvider {

//	IScope scope_Entity_features(Entity entity, EReference ref) {
//		List<Feature> features = new ArrayList<Feature>();
//        for (Trait trait : entity.getTraitTypes())
//        	features.addAll(trait.getOperations());
//        return Scopes.scopeFor(features);
//    }
}
